<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>样本信息管理</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <link href="css/global.css" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="floatClear tableToPBpx">
        <div class="tableToPImgBox floatLeft">
            <img class=" tableToPImg" src="img/sampleImg.png" alt="">
            <div class="tableToPTitle">样本信息管理</div>
        </div>
        <div class="tableTopBtn tableTopBtnImport">
            <img src="img/inport.png" alt="">
            <div>导入</div>
        </div>
        <a href="sampleManageEdit.html">
            <div class="tableTopBtn">
                <img src="img/luru.png" alt="">
                <div>录入</div>
            </div>
        </a>
    </div>
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="floatClear iboxHeader">
                <div class="iboxheaderBtn export">
                    <img src="img/export.png" alt="">
                    导出
                </div>
                <div class="iboxheaderBtn delete">
                    <img src="img/delete.png" alt="">
                    删除
                </div>
                <div class="iboxHeaderSearchBox floatRight">
                    <select class="iboxSelect" name="" id="">
                        <option value="">身份证号</option>
                    </select>
                    <div class="iboxBorder"></div>
                    <input class="iboxInput" type="text">
                    <div class="iboxBtn"><img src="img/search.png" alt="">搜索</div>
                </div>
            </div>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th><input type="checkbox" class="i-checks all" name="input[]"></th>
                        <th>ON号</th>
                        <th>NB号</th>
                        <th>姓名</th>
                        <th>身份证号</th>
                        <th>性别</th>
                        <th>是否重点客户</th>
                        <th>样本性质</th>
                        <th>样本类型</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>
                            <input type="checkbox" class="i-checks check" name="input[]">
                        </td>
                        <td>65657612</td>
                        <td>NBS20190415124423</td>
                        <td>王芳芳</td>
                        <td>140115461546765654</td>
                        <td>女</td>
                        <td>是</td>
                        <td>临床</td>
                        <td>干血</td>
                        <td style="text-align: center">
                            <a href="sampleManageDetail.html">
                                <div class="detailBtn"><img src="img/look.png" alt="">查看</div>
                            </a>
                            <a href="sampleManageEdit.html">
                                <div class="editBtn detailBtn"><img src="img/edit.png" alt="">修改</div>
                            </a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="i-checks check" name="input[]">
                        </td>
                        <td>65657612</td>
                        <td>NBS20190415124423</td>
                        <td>王芳芳</td>
                        <td>140115461546765654</td>
                        <td>女</td>
                        <td>是</td>
                        <td>临床</td>
                        <td>干血</td>
                        <td style="text-align: center">
                            <a href="sampleManageDetail.html">
                                <div class="detailBtn"><img src="img/look.png" alt="">查看</div>
                            </a>
                            <a href="sampleManageEdit.html">
                                <div class="editBtn detailBtn"><img src="img/edit.png" alt="">修改</div>
                            </a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="i-checks check" name="input[]">
                        </td>
                        <td>65657612</td>
                        <td>65657612</td>
                        <td>王芳芳</td>
                        <td>140115461546765654</td>
                        <td>女</td>
                        <td>是</td>
                        <td>临床</td>
                        <td>干血</td>
                        <td style="text-align: center">
                            <a href="sampleManageDetail.html">
                                <div class="detailBtn"><img src="img/look.png" alt="">查看</div>
                            </a>
                            <a href="sampleManageEdit.html">
                                <div class="editBtn detailBtn"><img src="img/edit.png" alt="">修改</div>
                            </a>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input type="checkbox" class="i-checks check" name="input[]">
                        </td>
                        <td>65657612</td>
                        <td>65657612</td>
                        <td>王芳芳</td>
                        <td>140115461546765654</td>
                        <td>女</td>
                        <td>是</td>
                        <td>临床</td>
                        <td>干血</td>
                        <td style="text-align: center">
                            <a href="sampleManageDetail.html">
                                <div class="detailBtn"><img src="img/look.png" alt="">查看</div>
                            </a>
                            <a href="sampleManageEdit.html">
                                <div class="editBtn detailBtn"><img src="img/edit.png" alt="">修改</div>
                            </a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="iBoxPagingBox">
                <div class="iBoxPagingItem"><</div>
                <div class="iBoxPagingItem on">1</div>
                <div class="iBoxPagingItem">2</div>
                <div class="iBoxPagingItem">3</div>
                <div class="iBoxPagingItem">4</div>
                <div class="iBoxPagingItem">5</div>
                <div class="iBoxPagingItem">></div>
            </div>
        </div>
    </div>
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<!-- Peity -->
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>
<!-- iCheck -->
<script src="js/plugins/iCheck/icheck.min.js"></script>
<!--自定义js-->
<script src="js/global.js"></script>
<script>
    $(document).ready(function () {
        // icheck初始化
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green'
        });
        // 全选功能
        var checkAll = $('input.all');
        var checkboxes = $('input.check');
        checkAll.on('ifChecked ifUnchecked', function (event) {
            if (event.type == 'ifChecked') {
                checkboxes.iCheck('check');
            } else {
                checkboxes.iCheck('uncheck');
            }
        });
        checkboxes.on('ifChanged', function (event) {
            if (checkboxes.filter(':checked').length == checkboxes.length) {
                checkAll.prop('checked', true);
            } else {
                checkAll.prop('checked', false);
            }
            checkAll.iCheck('update');
        })

        // 导入按钮点击
        $(".tableTopBtnImport").click(function () {
            parent.layer.confirm('是否导入样本信息？', {
                    btn: ['确定', '取消'], //按钮
                    shade: false //不显示遮罩
                },
                function () {
                    parent.layer.msg('导入成功', {icon: 1});
                },
                function () {
                    parent.layer.close();
                });
        })
    });
</script>
</body>
</html>
